package com.sl.au.service;

import java.util.List;

import org.springframework.data.domain.Sort.Direction;

import com.sl.au.entity.Account;
import com.sl.au.entity.BusinesssellerBaseInfo;
import com.sl.au.entity.User;
import com.sl.au.repository.BusinesssellerBaseInfoRepository;

public interface BusinesssellerBaseInfoService extends BaseService {

	BusinesssellerBaseInfoRepository getRepository();

	List<BusinesssellerBaseInfo> findAll();

	BusinesssellerBaseInfo findByBussinessSellerId(String bussinessId);

	List<BusinesssellerBaseInfo> getPage(int start, int length, String key, String orderName, Direction dir);

	List<BusinesssellerBaseInfo> getPage(int start, int length, String key, String level, String orderName,
			Direction dir);

	List<BusinesssellerBaseInfo> getPage(int start, int length, String key, String level, String role ,String orderName, Direction dir);

	List<BusinesssellerBaseInfo> getPageByLevel(int start, int length, String key, String level, String orderName,
			Direction dir);

	List<BusinesssellerBaseInfo> getPageByLevel(int start, int length, String key, String level, String role,String orderName,
			Direction dir);

	List<BusinesssellerBaseInfo> getPageByNoLevel(int start, int length, String key, String orderName, Direction dir);

	List<BusinesssellerBaseInfo> getPageByNoLevel(int start, int length, String key, String role, String orderName, Direction dir);

	int getCount(String key);

	int getCount(String key, String level);

	int getCount(String key, String level,String role);

	int getCountByNoLevel(String key);

	int getCountByNoLevel(String key, String role);

	int getCountByLevel(String key, String level);

	int getCountByLevel(String key, String level,String role);

	int savepicture(String url, String name);

	void deleteBussinessLevel(String[] ids);

	void saveMany(User user, BusinesssellerBaseInfo b, Account account);

	BusinesssellerBaseInfo findByShopName(String name);
}
